package com.example.demotest.service;

import com.example.demotest.pojo.Order;
import com.example.demotest.pojo.Rider;
import com.example.demotest.pojo.dto.RiderDto;
import com.example.demotest.pojo.ResponseMessage;

import java.util.List;

public interface IRiderService {
    ResponseMessage<Rider> login(RiderDto riderDto);
    Rider register(RiderDto riderDto);
    List<Order> getAvailableOrders();
    List<Order> getMyOrders(Integer riderId);
    ResponseMessage<String> acceptOrder(Integer riderId, Integer orderId);
    ResponseMessage<String> completeOrder(Integer riderId, Integer orderId);


}
